﻿using System;
using System.Data;
using System.Windows.Forms;
using System.Data.SqlClient;
using QuanLyTuyenSinh.Base;

namespace QuanLyTuyenSinh.Reports
{
    public partial class ReportPhieubaoNH : Form
    {
        //NganhThiBUS nganhthibus = new NganhThiBUS();
        //SqlConnection Conn;
        //private frmDangnhap obj;
        public ReportPhieubaoNH()
        {
            InitializeComponent();
        }

        
        private void ReportPhieubaoNH_Load(object sender, EventArgs e)
        {
            //Conn = ConnectData.Getcon();
            //Conn.Open();
            //ComboNganhhoc.DataSource = nganhthibus.LayManganhUngVoiTruong("SP2");
            //ComboNganhhoc.ValueMember = "Manganh";
            ComboNganhhoc.DisplayMember = "Manganh";
        }

        private void cmdDS_Click(object sender, EventArgs e)
        {
            //string sql = "select * from BangDiemDo where Manganh='"+ComboNganhhoc.Text.Trim()+"'";
            //SqlCommand cmd = new SqlCommand(sql, ConnectData.Getcon());
            //SqlDataAdapter DTA = new SqlDataAdapter(cmd);
            //DataTable DTL = new DataTable();
            //DataSet DTS = new DataSet();
            //DTA.Fill(DTS, "BangDiemDo");
            //DTL = DTS.Tables["BangDiemDo"];
            //rptPhieubaoNH cry = new rptPhieubaoNH();
            //cry.SetDataSource(DTL);
            //CryStalSPhieuBNH.ReportSource = cry;
            //CryStalSPhieuBNH.Refresh();
        }
    }
}
